home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Geek Gadgets 2
/
Geek_Gadgets_2_2352.bin
/
lists
/
ade-gcc.archive.9602.gz
/
ade-gcc.archive.9602
/
000000_owner-ade-gcc_Thu Feb 1 07:59:27 1996.msg
next >
Wrap
Internet Message Format
|
1996-02-28
|
4KB
Return-Path: <owner-ade-gcc>
Received: by fishpond (Smail3.1.29.1 #57)
id m0thyaK-000gXXa; Thu, 1 Feb 96 07:57 EST
Sender: owner-ade-gcc
Received: from arbi.informatik.uni-oldenburg.de by fishpond with smtp
(Smail3.1.29.1 #57) id m0thyaG-000gXWC; Thu, 1 Feb 96 07:57 EST
Received: by arbi.informatik.uni-oldenburg.de (smail3.1.18 + xalias);
Thu, 1 Feb 96 13:54 CET
Received: by diamant.Informatik.Uni-Oldenburg.DE (Smail3.1.29.1)
id <m0thyS5-0004wcC>; Thu, 1 Feb 96 13:49 MET
Received: by rubin.Informatik.Uni-Oldenburg.DE (Smail3.1.29.1)
id <m0thyRw-000DIzC>; Thu, 1 Feb 96 13:49 MET
Message-Id: <m0thyRw-000DIzC@rubin.Informatik.Uni-Oldenburg.DE>
Subject: a BUG again
To: ade-gcc@amigalib.com (amiga gcc-list)
Date: Thu, 1 Feb 1996 13:48:57 +0100 (MET)
From: Walter Harms <Walter.Harms@arbi.informatik.uni-oldenburg.de>
X-Mailer: ELM [version 2.4 PL22]
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Content-Length: 2923
Sender: owner-ade-gcc@amigalib.com
Precedence: bulk
as a nasty surprise i found this little bug:
gcc -m68030 -DAMIGA -DNOGAMMA -DPROTOTYPE__P -DRETSIGTYPE=void -DSTRNCASECMP -DPIPES -save-temps -v show.c
Reading specs from /gnu/lib/gcc-lib/m68000-unknown-amigaos/2.7.2/specs
gcc version 2.7.2
/gnu/lib/gcc-lib/m68000-unknown-amigaos/2.7.2/cpp -lang-c -v -undef -D__GNUC__=2 -D__G
NUC_MINOR__=7 -Dmc68000 -Damiga -Damigados -DMCH_AMIGA -DAMIGA -D__mc68000__ -D__amiga_
_ -D__amigados__ -D__MCH_AMIGA__ -D__AMIGA__ -D__mc68000 -D__amiga -D__amigados -D__MCH
_AMIGA -D__AMIGA -Asystem(amigados) -Acpu(m68k) -Amachine(m68k) -Dmc68030 -DAMIGA -DNOG
AMMA -DPROTOTYPE__P -DRETSIGTYPE=void -DSTRNCASECMP -DPIPES show.c show.i
GNU CPP version 2.7.2 (68k, MIT syntax)
#include "..." search starts here:
#include <...> search starts here:
/gnu/local/include
/gnu/m68000-unknown-amigaos/include
/gnu/lib/gcc-lib/m68000-unknown-amigaos/2.7.2/include
/gnu/os-include
/gnu/include
End of search list.
/gnu/lib/gcc-lib/m68000-unknown-amigaos/2.7.2/cc1 show.i -mfixedstack -quiet -dumpbase
show.c -m68030 -version -o show.s
GNU C version 2.7.2 (68k, MIT syntax) compiled by GNU C version 2.7.2.
In file included from ansichek.h:36,
from plot.h:57,
from show.c:58:
/gnu/include/stdio.h:252: iterator has no initial value
In file included from stdfn.h:24,
from plot.h:301,
from show.c:58:
/gnu/include/string.h:65: iterator has no initial value
Illegal instruction - /gnu/lib/gcc-lib/m68000-unknown-amigaos/2.7.2/cc1
gcc: Internal compiler error: program cc1 got fatal signal 4
make: *** [show.o] Error 1
the problem was caused due an little error on my side
this is the relevat part in show.c. you see USERDATA is used to call usedata[] in
existens unfortunaly i forgot the define -DUSERDATA
void /* used by plot.c */
show_version()
{
extern char version[];
extern char patchlevel[];
extern char date[];
extern char copyright[];
extern char bug_email[];
extern char help_email[];
#ifdef USERDATA
extern char userdata[];
#endif
fprintf(stderr, "\n\t%s\n\t%sversion %s\n", PROGRAM, OS, version);
fprintf(stderr, "\tpatchlevel %s\n",patchlevel);
fprintf(stderr, "\tlast modified %s\n", date);
fprintf(stderr,"\n\t%s", copyright);
fprintf(stderr, "\n\tThomas Williams, Colin Kelley and many others");
fprintf(stderr, "\n");
fprintf(stderr, "\n\tSend comments and requests for help to %s", help_email);
fprintf(stderr, "\n\tSend bugs, suggestions and mods to %s\n", bug_email);
#ifdef USERDATA
fprintf(stderr, "\tcomment: %s\n",userdata);
#endif
}
but in an other file this was correctly defined
<excerpt from version.c>
#ifdef USERDATA
char userdata[] = USERDATA;
#endif
the problem is gone if you define the USERDATA for show.c. actualy i dont see the
underlaying problem maybe somebody could fix this. may be the problem arises only
when called from a makefile, btw the stack was 300k.
walter